﻿<?php
include "../templates/db/db.php";
$sel_username = mysql_query('SELECT * FROM users WHERE username = "'.$_SESSION['username'].'"');
$row_u = mysql_fetch_assoc($sel_username);
if($_SESSION['username'] || $row_u['type'] == 3){
include "includes/header.php";
include "includes/container_see_t.php";
include "includes/footer.php";
} else {
	?>
		<script type='text/javascript'>
			alert('Трябва да се регистрирате/впишете в системата, за да можете да използвате форума');
		</script>
	<meta http-equiv="refresh" content="0;url=../index.php">
	<?php
}
?>